/**
 * Created by Administrator on 2018/7/11.
 */
//tab2content
var waitPayOrderList =
    JSON.parse(localStorage.getItem("waitPayOrderList"));

if(!waitPayOrderList||waitPayOrderList.length==0) {
    tab2content.innerHTML = "木有任何订单哦！";
}else{
    for(var i=0;i<waitPayOrderList.length;i++){
        var o = waitPayOrderList[i];
        var orderDiv = document.createElement("div");
        orderDiv.className = "order_div";
        orderDiv.innerHTML = o.myorderno+" "+o.totalPrice;
        tab2content.appendChild(orderDiv);
    }
}

var waitFaHuoOrderList =
    JSON.parse(localStorage.getItem("waitFaHuoOrderList"));

if(!waitFaHuoOrderList||waitFaHuoOrderList.length==0) {
    tab3content.innerHTML = "木有任何订单哦！";
}else{
    for(var i=0;i<waitFaHuoOrderList.length;i++){
        var o = waitFaHuoOrderList[i];
        var orderDiv = document.createElement("div");
        orderDiv.className = "order_div";
        orderDiv.innerHTML = o.myorderno+" "+o.totalPrice;
        tab3content.appendChild(orderDiv);
    }
}